Build a Go app with GORM for CockroachDB

Build a Go app with GORM for CockroachDB

Back in 2015 the early Cockroach Labs engineers made a decision to write this massive, complex application in Go. Since then we have, on many occassions, discussed our use of Go in blogs and on stage.

This video in which our Chief Architect, Ben Darnell, explains our user of Go in great detail is a good place to start:

It made sense that at some point we would also support GORM.

What is GORM?

GORM is a developer-friendly ORM library for dealing with relational databases–including CockroachDB. The official support of GORM will enable Go developers to access the power of SQL with our favorite programming language. With GORM for CockroachDB, Gophers can easily manage database interactions and operations, all in one place. 

In this tutorial you can build a Go App with CockroachDB and GORM

How to Learn Golang

Golang has grown in popularity since we first adopted it back in 2015. It has now been adopted by many meaningful open source projects such as the group mentioned in this tweet from Kelsey Hightower:

But Go is still a relatively new language compared to the more common languages like Python, Java, and C#. If Golang and GORM are both new languages to you then you’re not alone. New CockroachDB engineer Paul Kernfeld has taken on the challenge of publicly learning Go in this live stream video series: Learning Golang From Zero. Join Paul on Friday mornings to learn Go right along with him.

About the author

Dan Kelly linkedin link

Dan has been producing technical blogs, videos, whitepapers, and webinars at Cockroach Labs for the last 4+ years. His mission is to identify the most pressing problems developers face and to create content to solve them. Outside of work Dan is usually chasing his three year old daughter or cooking something indulgent.

Keep Reading

Build a Java app with CockroachDB and jOOQ

We’re excited to announce that the latest release of jOOQ supports CockroachDB. 

jOOQ is a …

Read more
How to use CockroachDB with your Django application on Ubuntu

Django is a high-level flexible framework for building Python applications quickly. Applications run on Django …

Read more
Community tutorial: Using NPoco with CockroachDB and C# / .NET Core

Hi, I’m Darrien, and I’m building a distributed, near-real time, “OSINT data …

Read more